package cn.cailin.day06.demo02Runnable;
//1.创建一个Runnable接口的实现类
public class RunnableImpl implements java.lang.Runnable {
    //2.实现类中重写的Runnable接口的run方法设置线程任务
    @Override
    public void run() {
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"-->"+i);
        }
    }
}
